<!-- HTML header for doxygen 1.8.10-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="generator" content="Doxygen 1.8.10" />
    <title>ZRDDS: DurabilityServiceQosPolicy类 参考</title>
    <link href="tabs.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="dynsections.js"></script>
    <link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
    <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
    <link href="doxygen.css" rel="stylesheet" type="text/css" />
    <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
    <link href="static/css/bootstrap.css" rel="stylesheet" />
    <!-- <link href="static/css/sticky-footer-navbar.css" rel="stylesheet">
    <script type="text/javascript" src="static/js/bootstrap.js"></script> -->
    <script type="text/javascript" src="static/js/doxy-boot.js"></script>
</head>
<body>
    <div id="top">
        <!-- do not remove this div, it is closed by doxygen! -->
        <!-- end header part --><!-- 制作者 Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="namespaces.html"><span>包</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="examples.html"><span>示例</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">DurabilityServiceQosPolicy类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>历史数据资源配置。  
 <a href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#details">更多...</a></p>
<div class="dynheader">
类 DurabilityServiceQosPolicy 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.png" usemap="#DurabilityServiceQosPolicy_map" alt=""/>
  <map id="DurabilityServiceQosPolicy_map" name="DurabilityServiceQosPolicy_map">
<area href="classcom_1_1zrdds_1_1infrastructure_1_1_qos_policy.html" title="Qos的基类 " alt="QosPolicy" shape="rect" coords="0,0,168,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:aa1005b81158b26503a8155025f620519"><td class="memItemLeft" align="right" valign="top">final <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_duration__t.html">Duration_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#aa1005b81158b26503a8155025f620519">service_cleanup_delay</a> = new <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_duration__t.html">Duration_t</a>(Integer.MAX_VALUE, Integer.MAX_VALUE)</td></tr>
<tr class="memdesc:aa1005b81158b26503a8155025f620519"><td class="mdescLeft">&#160;</td><td class="mdescRight">控制何时删除持久化服务中保存的数据实例的信息。  <a href="#aa1005b81158b26503a8155025f620519">更多...</a><br /></td></tr>
<tr class="separator:aa1005b81158b26503a8155025f620519"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad54008ca6f5f01ddb7008ff5141335cd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad54008ca6f5f01ddb7008ff5141335cd"></a>
<a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_history_qos_policy_kind.html">HistoryQosPolicyKind</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#ad54008ca6f5f01ddb7008ff5141335cd">history_kind</a></td></tr>
<tr class="memdesc:ad54008ca6f5f01ddb7008ff5141335cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">为每个数据实例保存数据的类型。 <br /></td></tr>
<tr class="separator:ad54008ca6f5f01ddb7008ff5141335cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71402102fbbe3c916e558e7e7b6a1a69"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a71402102fbbe3c916e558e7e7b6a1a69"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#a71402102fbbe3c916e558e7e7b6a1a69">history_depth</a></td></tr>
<tr class="memdesc:a71402102fbbe3c916e558e7e7b6a1a69"><td class="mdescLeft">&#160;</td><td class="mdescRight">当 history_kind == <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_history_qos_policy_kind.html#ae8f8d874270b6d22cc6190512cc3715b" title="保存最新样本数据类型。 ">HistoryQosPolicyKind.KEEP_LAST_HISTORY_QOS</a> 时，为每个数据实例保存最新的 <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#a71402102fbbe3c916e558e7e7b6a1a69" title="当 history_kind == HistoryQosPolicyKind.KEEP_LAST_HISTORY_QOS 时，为每个数据实例保存最新的 history_de...">history_depth</a> 个数据样本。 <br /></td></tr>
<tr class="separator:a71402102fbbe3c916e558e7e7b6a1a69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c2a87a4767b93d595412a245ae0ad8d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4c2a87a4767b93d595412a245ae0ad8d"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#a4c2a87a4767b93d595412a245ae0ad8d">max_samples</a></td></tr>
<tr class="memdesc:a4c2a87a4767b93d595412a245ae0ad8d"><td class="mdescLeft">&#160;</td><td class="mdescRight">当 history_kind == <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_history_qos_policy_kind.html#a74577cf78de2e38cb7955748a1f7b150" title="尝试保存所有样本数据类型。 ">HistoryQosPolicyKind.KEEP_ALL_HISTORY_QOS</a> 时，为该主题保存的数据样本上限个数。 <br /></td></tr>
<tr class="separator:a4c2a87a4767b93d595412a245ae0ad8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8abf22613afeea9617c5db7cbe48b8e2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8abf22613afeea9617c5db7cbe48b8e2"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#a8abf22613afeea9617c5db7cbe48b8e2">max_instances</a></td></tr>
<tr class="memdesc:a8abf22613afeea9617c5db7cbe48b8e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">当 history_kind == <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_history_qos_policy_kind.html#a74577cf78de2e38cb7955748a1f7b150" title="尝试保存所有样本数据类型。 ">HistoryQosPolicyKind.KEEP_ALL_HISTORY_QOS</a> 时，为该主题下保存的数据实例上限个数。 <br /></td></tr>
<tr class="separator:a8abf22613afeea9617c5db7cbe48b8e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a461fe85981c6ca60f1c615307e4ff213"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a461fe85981c6ca60f1c615307e4ff213"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#a461fe85981c6ca60f1c615307e4ff213">max_samples_per_instance</a></td></tr>
<tr class="memdesc:a461fe85981c6ca60f1c615307e4ff213"><td class="mdescLeft">&#160;</td><td class="mdescRight">当 history_kind == <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_history_qos_policy_kind.html#a74577cf78de2e38cb7955748a1f7b150" title="尝试保存所有样本数据类型。 ">HistoryQosPolicyKind.KEEP_ALL_HISTORY_QOS</a> 时，为该主题下每个数据实例保存的数据样本个数上限。 <br /></td></tr>
<tr class="separator:a461fe85981c6ca60f1c615307e4ff213"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>历史数据资源配置。 </p>
<p>当 <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_qos_policy_kind.html" title="数据持久化类型。 ">DurabilityQosPolicyKind</a> 取值为 <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_qos_policy_kind.html#a6ca8a7cbbb47ddfc3410fa9c955ea29e" title="所有数据写者（包括在数据读者加入DDS网络时已经被删除的数据写者）在内存中持久化。 ">DurabilityQosPolicyKind.TRANSIENT_DURABILITY_QOS</a> <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_qos_policy_kind.html#a0b69538f57900f159c71dce3b47890c0" title="所有数据写者（包括在数据读者加入DDS网络时已经被删除的数据写者）在内存中持久化。 ">DurabilityQosPolicyKind.PERSISTENT_DURABILITY_QOS</a> 时，此时数据写者需要保存的历史数据的时间需要超过数据写者自身的生命周期， 即数据写者被删除时，历史数据仍需要保存，此时需要一个特殊的持久化服务来为该数据写者保存历史数据，本QoS即控制该持久化 服务为该数据写者保存的历史数据的资源限制。 </p><table class="doxtable">
<tr>
<th>成员 </th><th>默认值 </th><th>匹配规则检查 </th><th>有效性检查 </th><th>兼容性检查 </th><th>可变性检查  </th></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#aa1005b81158b26503a8155025f620519" title="控制何时删除持久化服务中保存的数据实例的信息。 ">service_cleanup_delay</a> </td><td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_duration__t.html#abde3e6ac7daf26f2a218f520f603d1af" title="时间长度为0的时间段 ">Duration_t.DURATION_ZERO</a> </td><td>无 </td><td>无 </td><td>无 </td><td>不可变 </td></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#ad54008ca6f5f01ddb7008ff5141335cd" title="为每个数据实例保存数据的类型。 ">history_kind</a> </td><td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_history_qos_policy_kind.html#ae8f8d874270b6d22cc6190512cc3715b" title="保存最新样本数据类型。 ">HistoryQosPolicyKind.KEEP_LAST_HISTORY_QOS</a> </td><td>无 </td><td>无 </td><td>无 </td><td>不可变 </td></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#a71402102fbbe3c916e558e7e7b6a1a69" title="当 history_kind == HistoryQosPolicyKind.KEEP_LAST_HISTORY_QOS 时，为每个数据实例保存最新的 history_de...">history_depth</a> </td><td>1 </td><td>无 </td><td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#a71402102fbbe3c916e558e7e7b6a1a69" title="当 history_kind == HistoryQosPolicyKind.KEEP_LAST_HISTORY_QOS 时，为每个数据实例保存最新的 history_de...">history_depth</a> &gt; 0 </td><td>无 </td><td>不可变 </td></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#a4c2a87a4767b93d595412a245ae0ad8d" title="当 history_kind == HistoryQosPolicyKind.KEEP_ALL_HISTORY_QOS 时，为该主题保存的数据样本上限个数。 ...">max_samples</a> </td><td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_resource_limits_qos_policy.html#ad04230e0956f0c23883cc8ba653fbf4b" title="表示无限 ">ResourceLimitsQosPolicy.LENGTH_UNLIMITED</a> </td><td>无 </td><td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#a4c2a87a4767b93d595412a245ae0ad8d" title="当 history_kind == HistoryQosPolicyKind.KEEP_ALL_HISTORY_QOS 时，为该主题保存的数据样本上限个数。 ...">max_samples</a> &gt; 0 </td><td>无 </td><td>不可变 </td></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#a8abf22613afeea9617c5db7cbe48b8e2" title="当 history_kind == HistoryQosPolicyKind.KEEP_ALL_HISTORY_QOS 时，为该主题下保存的数据实例上限个数。 ...">max_instances</a> </td><td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_resource_limits_qos_policy.html#ad04230e0956f0c23883cc8ba653fbf4b" title="表示无限 ">ResourceLimitsQosPolicy.LENGTH_UNLIMITED</a> </td><td>无 </td><td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#a8abf22613afeea9617c5db7cbe48b8e2" title="当 history_kind == HistoryQosPolicyKind.KEEP_ALL_HISTORY_QOS 时，为该主题下保存的数据实例上限个数。 ...">max_instances</a> &gt; 0 </td><td>无 </td><td>不可变 </td></tr>
<tr>
<td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#a461fe85981c6ca60f1c615307e4ff213" title="当 history_kind == HistoryQosPolicyKind.KEEP_ALL_HISTORY_QOS 时，为该主题下每个数据实例保存的数据样本...">max_samples_per_instance</a> </td><td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_resource_limits_qos_policy.html#ad04230e0956f0c23883cc8ba653fbf4b" title="表示无限 ">ResourceLimitsQosPolicy.LENGTH_UNLIMITED</a> </td><td>无 </td><td><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#a461fe85981c6ca60f1c615307e4ff213" title="当 history_kind == HistoryQosPolicyKind.KEEP_ALL_HISTORY_QOS 时，为该主题下每个数据实例保存的数据样本...">max_samples_per_instance</a> &gt; 0 </td><td>无 </td><td>不可变 </td></tr>
</table>
</div><h2 class="groupheader">类成员变量说明</h2>
<a class="anchor" id="aa1005b81158b26503a8155025f620519"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_duration__t.html">Duration_t</a> service_cleanup_delay = new <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_duration__t.html">Duration_t</a>(Integer.MAX_VALUE, Integer.MAX_VALUE)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>控制何时删除持久化服务中保存的数据实例的信息。 </p>
<p>满足以下三个条件时删除：</p><ol type="1">
<li>数据实例被显示的dispose，即instance_state=InstanceStateKind.NOT_ALIVE_DISPOSED_INSTANCE_STATE；</li>
<li>当在InstanceStateKind.NOT_ALIVE_DISPOSED_INSTANCE_STATE状态时，没有活着的DataWriter在写这个数据实例，即所有主题下的Writer要么注销了该数据实例，要么不再存活；</li>
<li>在检测到前面两个条件满足后过了 <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html#aa1005b81158b26503a8155025f620519" title="控制何时删除持久化服务中保存的数据实例的信息。 ">service_cleanup_delay</a> 时间。 </li>
</ol>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>DurabilityServiceQosPolicy.java</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.10-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>com</b></li><li class="navelem"><b>zrdds</b></li><li class="navelem"><a class="el" href="namespacecom_1_1zrdds_1_1infrastructure.html">infrastructure</a></li><li class="navelem"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_durability_service_qos_policy.html">DurabilityServiceQosPolicy</a></li>
    <li class="footer">
      <a href="http://www.zrtechnology.com">&copy; Copyright (c) 2018 ZhenRong Technology, Inc. All rights reserved.</a>
    </li>
  </ul>
</div>
</body>
</html>
